<template>
  <article class="page">
    <headerbar>二维码签到</headerbar>
    <section class="frame-content-sub no-bg">
      <section class="inner-content pdv-9 pdh-4">

        <div class="imgs" v-saveImage>
          <div class="img text-center"><img :src="data.codeTxt" alt=""></div>
          <div class="name text-center">{{data.explanation}}</div>
          <!--<img src="../../../../static/images/user_bg.jpg" alt="">-->
        </div>

      </section>
    </section>
  </article>
</template>

<script>
  import {Textarea} from 'cube-ui'
  import tools from '@/utils/tools'
  import api from '@/common/config/api'
  import loginService from '@/service/loginService'
  import moment from 'moment'
  import fileIcon from '../../../../static/images/up_document.png'
  export default {
    components: {Textarea},
    name: 'qrcode',
    data () {
      return {
        orgLifeId: '',
        data: {}
      }
    },
    created () {
      this.orgLifeId = this.$route.params.id
      this.loadData()
    },
    methods: {
      loadData () {
        let data = {
          loginId: "112029",
          orgLifeId: this.orgLifeId
        }
        loginService.signCode(data).then((res) => {
          if (res.code !== 0) {
            return tools.tip(res.message)
          }
          this.data = res.data
        })
      }
    }
  }
</script>

<style scoped>

</style>
